package com.zc.study.thread.多线程第四章节.thread4_1_7;

/**
 * 利用condition的await和single方法来实现生产者和消费者的交替执行
 */
public class Test {
    public static void main(String[] args) {
        Service service =new Service();
        ThreadA a = new ThreadA(service);
        ThreadB b =new ThreadB(service);
        a.start();
        b.start();
    }
}
